package com.atguigu.newmvc2.exception;

import lombok.Getter;

@Getter
public enum BusExceptionEnum {
    USER_NOT_EXIST(400, "用户不存在"),
    USER_NOT_LOGIN(401, "用户未登录"),
    USER_PASSWORD_ERROR(402, "密码错误"),
    USER_EXIST(403, "用户已存在"),

    ORDER_NOT_EXIST(500, "订单不存在"),
    ORDER_PAYED(501, "订单已支付"),
    STOCK_NOT_ENOUGH(600, "库存不足"),
    EMP_NOT_EXIST(700, "员工不存在");

    private  final Integer code;
    private final String message;
    BusExceptionEnum(Integer code,String message){
        this.code= code;
        this.message=message;
    }




}
